home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / comm / net / amitcp_ups10.lha / README.amiga next >
Text File  |  1993-10-10  |  3KB  |  104 lines

  1. Short: Nice little AmiTCP file transmission program
  2. Type: comm/tcpip
  3. Uploader: ch@irb.informatik.uni-dortmund.de
  4. Author: ???, amiga port by ch@irb.informatik.uni-dortmund.de
  5.  
  6. Hello Netters,
  7.  
  8. I wanted to know how difficult it is to create a daemon suitable for
  9. AmiTCP. I liked the little program "ups" we use at the university of
  10. Dortmund for sending files between users and so I took the source
  11. to my amiga.
  12. Here's the result. 
  13.  
  14. Be warned:
  15.     I didn't take much effort in making a clean port but I hope I
  16.     didn't introduce much new bugs :-)
  17.  
  18.  
  19. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  20. ! But as ever: You got what you paid for, use at your own risk.!
  21. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  22.  
  23. Take a look at the original README to see what ups does.
  24.  
  25. Here a short summary:
  26. 1. Send the files 'a', 'b' and 'c' to a <user> on <host>:
  27.     ups user@host a b c
  28. 2. Look for arrived files
  29.     ups -q
  30. 3. Receive files
  31.     ups
  32.     
  33. The port was done using SAS 6.3 and AmiTCP 2.0.
  34.  
  35. Installation on amitcp
  36.  
  37.     1)  Add ups to the table of known ports in amitcp:db/services as follows:
  38.  
  39.     ups    600/tcp
  40.  
  41.     2)  Add ups to the inetd configuration file amitcp:db/inetd.conf:
  42.  
  43.     ups    stream    tcp    nowait    root    amitcp:bin/upsd    upsd
  44.  
  45.     3) Copy ups, upsd and ups-sendmail to amitcp:bin.
  46.  
  47.     4) Set USERNAME in your user-startup to your login name.
  48.        Set UPS_USERS to a colon separated list of users able to 
  49.        receive files via ups.
  50.  
  51.        I use:
  52.         setenv USERNAME alph
  53.         setenv UPS_USERS alph:ch
  54.  
  55.     5) Make an "assign ups-spool: <somewhere>" to your incoming
  56.        spool directory.
  57.     
  58. Changes to the un*x version:
  59.     - Since there's no semi-official port of /etc/password stuff I
  60.       made the following assumptions:
  61.       Sender:
  62.         The name of the sender is obtained from the
  63.         environment variable USERNAME, the name of the
  64.         host from HOSTNAME.
  65.       Receiver:
  66.         The ups daemon will accept incoming files 
  67.         only for users listed in UPS_USERS, e.g. 
  68.         "ups alph@alph3000 mytreasure" will only be legal if
  69.         UPS_USERS contains 'alph' on the host alph3000.
  70.  
  71.     - Since there's no semi-official port of /etc/aliases I disabed
  72.       the alias feature of ups.
  73.     
  74.     - On un*x boxes ups uses mail to inform the user about
  75.       new files. To keep it simple I include a fake sendmail
  76.       (ups-sendmail) which just opens a Console-Window
  77.       containing the mail normally send :-)
  78.       You may replace ups-sendmail with your own program.
  79.       It should accept sendmail-like parameters and will get it's
  80.       Input via stdin.
  81.  
  82. Notes:
  83.     - When sending files between amigas only un*x-like protection bits
  84.       will be preserved. Sending format is un*x-format to be
  85.       compatible with the un*x version.
  86.  
  87.       It should be easy to enhance the protocol to identify
  88.       an amiga on the other side and behave according to that.
  89.  
  90.     - I'm using my s_socket layer instead of changing the read/write
  91.       calls because of pure lazyness.:-) (I used it extensively in my
  92.       port of ncftp)
  93.  
  94. As I said before I didn't put much effort in changing the ups source
  95. so you're welcome to proceed.
  96.  
  97. I hope you enjoy it,
  98.     
  99.     Carsten Heyl
  100.  
  101. You may try to reach me via email at ch@irb.informatik.uni-dortmund.de.
  102.  
  103.  
  104.